<template>
  <div class="component-title-wrapper">
    <div class="component-title">
      <slot>{{ title }}</slot>
    </div>
    <a-divider />
  </div>
</template>

<script lang="ts" setup>
  import { withDefaults, defineProps } from 'vue';

  interface Props {
    title: string;
  }
  withDefaults(defineProps<Props>(), {});
</script>

<style lang="less" scoped>
  .component-title-wrapper {
    width: 100%;
    .component-title {
      padding-top: 20px;
      font-size: 16px;
      font-weight: bold;
    }
  }
</style>
